import $api from "./api";

// 获取全部数据
export  const addClient = async (data)=>{
    const res = await $api.post('/book/findAll',data);
    return res.data
}
//关键字检索地址
export const  getBdSearch = async (data)=>{
    const res = await $api.post('/common/bdSearch',data);
    return res.data
}
//获取单条数据
export const  bookone = async (data)=>{
    const res = await $api.post('/book/bookone',data);
    return res.data
}
//修改数据
export const  bookupdate = async (data)=>{
    const res = await $api.post('/book/update',data);
    return res.data
}
//获取多本书信息
export const  bookInfo = async (data)=>{
    const res = await $api.post('/book/bookInfo',data);
    return res.data
}
//添加
export const  bookadd = async (data)=>{
    const res = await $api.post('/book/add',data);
    return res.data
}

//根据经纬度获取商店
export const  query = async (data)=>{
    const res = await $api.post('/book/query',data);
    return res.data
}


// export const getAllClient = async (data)=>{
//     const res = await $api.post('/live/queryBuild',data);
//     return res.data
// }

// export const getClientInfoByRoomId = async (data)=>{
//     const res = await $api.post('/live/liveInfo',data);
//     return res.data
// }


// export const addBill = async (data)=>{
//     const res = await $api.post('/bill/add',data);
//     return res.data
// }


// export const getBillList = async (data)=>{
//     const res = await $api.post('/bill/queryBuild',data);
//     return res.data
// }

